﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Y2016CS32ONLINE.STRUCTURE_PROGRAMMING.DEMO
{
    public partial class WHILE_DEMO : Form
    {
        public WHILE_DEMO()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            int iCount = 0;
            while(iCount < 10){
                listBox1.Items.Add("iCount = " + iCount);
                //iCount = iCount + 1; //iCount++;
                //iCount++;
                iCount = iCount++;
                iCount = ++iCount;
            }
        }
    }
}
